home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Borland
/
Borland C++ V5.02
/
CLASSSRC.PAK
/
WSYSCLSS.CPP
< prev
Wrap
C/C++ Source or Header
|
1997-05-06
|
880b
|
41 lines
//----------------------------------------------------------------------------
// Borland WinSys Library
// Copyright (c) 1993, 1997 by Borland International, All Rights Reserved
//
//$Revision: 5.6 $
//
// Implementation of streaming for window system structure and type
// encapsulation
//----------------------------------------------------------------------------
#include <winsys/pch.h>
#include <winsys/wsyscls.h>
#if defined(BI_NAMESPACE)
namespace ClassLib {
#endif
//
// Streaming operators for resource Ids
//
ostream& _WSYSFUNC
operator <<(ostream& os, const TResId& id)
{
bool isNumeric = ToBool(!id.IsString());
if (isNumeric)
os << id.Num;
else
#if defined(BI_DATA_NEAR)
os << string(id.Str);
#else
os << id.Str;
#endif
return os;
}
#if defined(BI_NAMESPACE)
} // namespace ClassLib
#endif